<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2020/12/18
  Time: 10:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style type="text/css">
        body{
            margin: 0px;
            height: 120px;
            padding: 0px;
        }

        #container{
            margin: 0 auto;
            margin-left: 10px;
            width: 100%;
            height: 120px;
        }

        #header{
            width:100%;
            height: 100px;
            /*font-size: 30px;
            font-family: 楷体;*/
            /*text-align: center;
            line-height: 100px;*/

        }

        #main{
            width:100%;
            height: 400px;
            background-color: black;

        }

        #header #title0{
            float:left;
            width: 300px;
            height: 100%;
            font-size: 40px;
            font-family: 楷体;
            line-height: 100px;         /* 不能用100%*/
            text-align: center;
        }

        #header #title1{
            float:left;
            width: 300px;
            height: 100%;
            font-size: 30px;
            font-family: 楷体;
            line-height: 100px;         /* 不能用100%*/
            text-align: center;
        }

        #header #title2{
            float:left;
            width: 300px;
            height: 100%;
            font-size: 30px;
            font-family: 楷体;
            line-height: 100px;         /* 不能用100%*/
            text-align: center;
        }

        #header #title3{
            float:left;
            width: 300px;
            height: 100%;
            font-size: 30px;
            font-family: 楷体;
            line-height: 100px;         /* 不能用100%*/
            text-align: center;
        }

        #header #title4{
            float:left;
            width: 300px;
            height: 100%;
            font-size: 30px;
            font-family: 楷体;
            line-height: 100px;         /* 不能用100%*/
            text-align: center;
        }

        #header #login_or_register{
            float: left;
            margin-top: 20px;
            /*background-color: red;*/
            width: 100px;
            height: 40px;
            font-size: 17px;
            font-family: 楷体;
            /*border: 3px  solid #f00;*/
        }
        #header #login_or_register a{
            text-decoration: none;
        }

    </style>
</head>
<body>
<div id="container">
    <div id="header">
        <%--<h1>NWPU学生论坛</h1>
        <a href="<c:url value="/" />">注销</a> 欢迎管理员：${sessionScope.admin.adminName} <br>
        <a href="<c:url value="/admin/modify" />">修改个人信息</a> <br>
        <a href="<c:url value="/admin/userList" /> ">用户列表</a> <br>
        <a href="<c:url value="/admin/postList" /> ">主题列表</a> <br>
        <a href="<c:url value="/admin/adminList" />">管理员列表</a> <br>--%>
        <div id="title0"><span>NWPU学生论坛</span></div>
        <div id="title1"><span><a href="<c:url value="/admin/modify" />">修改个人信息</a> <br></span></div>
        <div id="title2"><span><a href="<c:url value="/admin/userList" /> ">用户列表</a> <br></span></div>
        <div id="title3"><span><a href="<c:url value="/admin/postList" /> ">主题列表</a> <br></span></div>
        <div id="title4"><span><a href="<c:url value="/admin/adminList" />">管理员列表</a> <br></span></div>
            <c:if test="${sessionScope.admin != null}">
            <p style="float: left;margin-top: 40px;">欢迎管理员:${sessionScope.admin.adminName}</p>
                <a style="float: left;margin-top: 40px;margin-left: 30px;" href=" <c:url value="/admin/logout"/>">注销</a>
            </c:if>
    </div>
</div>

</body>
</html>
